package com.ruoyi.thgd.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.thgd.mapper.ThgdJsdViddesMapper;
import com.ruoyi.thgd.domain.ThgdJsdViddes;
import com.ruoyi.thgd.service.IThgdJsdViddesService;

/**
 * 退化耕地- 紧实度 -视频Service业务层处理
 * 
 * @author chenhs
 * @date 2024-09-11
 */
@Service
public class ThgdJsdViddesServiceImpl implements IThgdJsdViddesService 
{
    @Autowired
    private ThgdJsdViddesMapper thgdJsdViddesMapper;

    /**
     * 查询退化耕地- 紧实度 -视频
     * 
     * @param id 退化耕地- 紧实度 -视频主键
     * @return 退化耕地- 紧实度 -视频
     */
    @Override
    public ThgdJsdViddes selectThgdJsdViddesById(Integer id)
    {
        return thgdJsdViddesMapper.selectThgdJsdViddesById(id);
    }

    /**
     * 查询退化耕地- 紧实度 -视频列表
     * 
     * @param thgdJsdViddes 退化耕地- 紧实度 -视频
     * @return 退化耕地- 紧实度 -视频
     */
    @Override
    public List<ThgdJsdViddes> selectThgdJsdViddesList(ThgdJsdViddes thgdJsdViddes)
    {
        return thgdJsdViddesMapper.selectThgdJsdViddesList(thgdJsdViddes);
    }

    /**
     * 新增退化耕地- 紧实度 -视频
     * 
     * @param thgdJsdViddes 退化耕地- 紧实度 -视频
     * @return 结果
     */
    @Override
    public int insertThgdJsdViddes(ThgdJsdViddes thgdJsdViddes)
    {
        thgdJsdViddes.setCreateTime(DateUtils.getNowDate());
        return thgdJsdViddesMapper.insertThgdJsdViddes(thgdJsdViddes);
    }

    /**
     * 修改退化耕地- 紧实度 -视频
     * 
     * @param thgdJsdViddes 退化耕地- 紧实度 -视频
     * @return 结果
     */
    @Override
    public int updateThgdJsdViddes(ThgdJsdViddes thgdJsdViddes)
    {
        thgdJsdViddes.setUpdateTime(DateUtils.getNowDate());
        return thgdJsdViddesMapper.updateThgdJsdViddes(thgdJsdViddes);
    }

    /**
     * 批量删除退化耕地- 紧实度 -视频
     * 
     * @param ids 需要删除的退化耕地- 紧实度 -视频主键
     * @return 结果
     */
    @Override
    public int deleteThgdJsdViddesByIds(Integer[] ids)
    {
        return thgdJsdViddesMapper.deleteThgdJsdViddesByIds(ids);
    }

    /**
     * 删除退化耕地- 紧实度 -视频信息
     * 
     * @param id 退化耕地- 紧实度 -视频主键
     * @return 结果
     */
    @Override
    public int deleteThgdJsdViddesById(Integer id)
    {
        return thgdJsdViddesMapper.deleteThgdJsdViddesById(id);
    }
}
